package com.chixing.day17_reflect_thread.thread.synchronizeddemo;

public class AccountThread extends Thread {
    private Account account;

    public AccountThread(Account account){
        this.account = account;
    }

    @Override
    public void run() {
        this.account.depoist(10);

    }
}